﻿using System;
using Neurotec.Biometrics;


namespace AccessControl.FingerPrintLibrary
{
    public class FingerMatcher
    {
        #region Fields

        private readonly NMatcher _nMatcher;

        #endregion

        #region Constructor

        public FingerMatcher()
        {
            _nMatcher=new NMatcher
            {
                FingersMatchingSpeed = NMatchingSpeed.Low
            };
        }

        #endregion

        #region Public Method

        public void IdentifyStart(Byte[] template)
        {
            _nMatcher.IdentifyStart(template);
        }
        
        public int IdentifyNext(Byte[] template)
        {
            return _nMatcher.IdentifyNext(template);
        }

        public void IdentifyEnd()
        {
            _nMatcher.IdentifyEnd();
        }

        #endregion

    }
}
